package com.lxy.user.service;

import com.lxy.common.JsonResult;
import com.lxy.user.service.impl.LagouCodeServiceFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author 123
 * @date 2020/6/28 15:17
 * @description
 */
@FeignClient(value = "lagou-service-code",fallback = LagouCodeServiceFeignClientFallback.class,path = "code")
public interface LagouCodeServiceFeginClient {


    @PostMapping("validate/{email}/{code}")
    public JsonResult authCode(@PathVariable("email") String email, @PathVariable("code") String code);


}
